<?php include "../public/header.php";?>
<?php include "../public/header_show.php";?>
<body id="xiangqingPage">
<div id="xiangqingBox">
    <div class="page-title">
        <div class="page-title-con">
            <span class="pageshowtitle">详情</span>
            <div class="page-title-opt-list">
                <?php include "../public_flow/flow_show_optbut.php";?>
                <button class="layui-btn layui-btn-sm btn-light marginr5 opt">
                    操作<i class="layui-icon layui-icon-down layui-font-12"></i>
                </button>
                <span id="page-close" class="page-close" onclick="layer_close()">×</span>
            </div>
        </div>
    </div>
    <div class="main-container">

        <div><?php include "../public_flow/flow_show_info.php";?></div>

        <div class="table-box tablenes">
            <div class="title">基本信息</div>
            <table class="layui-table">
                <tbody>

                <tr><td class="tt">还款编号</td><td id="number" class="tv"></td><td class="tt">关联备用金</td><td id="jieid_name" class="colorlan tv"></td></tr>
                <tr><td class="tt">还款金额(元)</td><td id="money" class="tv"></td><td class="tt">还款说明</td><td id="zhai" class="tv"></td></tr>
                <tr><td class="tt">还款人</td><td id="jiegonger" class="tv"></td><td class="tt">还款日期</td><td id="dt" class="tv"></td></tr>

                <tr><td class="tt">备注</td><td class="tv" id="explain" colspan="3"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include "../public/upinfo_show.php";?></div>

        <div><?php include "../public_flow/flow_show_flowrelas.php";?></div>

        <div class="table-box tablenes">
            <div class="title">到账信息(财务)</div>
            <table class="layui-table">
                <tbody>
                <tr><td class="tt">到账状态</td><td id="payfo_status" class="tv"></td><td class="tt">最近到账日期</td><td id="payfo_dt" class="tv"></td></tr>
                <tr><td class="tt">到账金额(元)</td><td id="payfo_payfee" class="tv"></td><td class="tt">未到账金额</td><td id="payfo_dai" class="tv"></td></tr>
                </tbody>
            </table>
        </div>

        <div><?php include '../public_flow/flow_show_shenlog.php'?></div>
        <div><?php include '../public_flow/flow_show_talk.php'?></div>
        <div><?php include '../public/opt_browse.php'?></div>
    </div>
</div>
<script>
    var param_id = getQueryVariable('id') || 0;

    layui.use(['form', 'layer', "laytp",'element','dropdown','laypage','table','soulTable'], function() {
        var laypage = layui.laypage, table = layui.table, dropdown = layui.dropdown, form = layui.form, soulTable = layui.soulTable,element = layui.element;

        facade.ajax({url: ask_income_huan_show, data:{id: param_id}}).done(function(res){
            if (res.code === 2000) {
                var data = res.data.data;
                var jieinfo = res.data.jieinfo;
                var account = res.data.account;


                if(jieinfo){
                    $("#jieid_name").text(jieinfo.number+'('+jieinfo.gonger+')').click(function () {
                        openPage('../payment_jie/show.php?id='+jieinfo.id);
                    });
                }
                $("#jiegonger").text(jieinfo.gonger);


                $("#number").text(data.number);
                $("#money").text(data.money);
                $("#zhai").text(data.zhai);
                $("#dt").text(data.dt);
                $("#explain").text(data.explain);

                $("#payfo_status").text(data.payfo_status);
                $("#payfo_payfee").text(data.payfo_payfee);
                $("#payfo_dt").text(data.payfo_dt);
                $("#payfo_dai").text(data.payfo_dai);

                public_flow_show_display(res.data.billinfo);
                public_upload_show_file('upload_files', res.data.files);
                render_from();
            }
        });

        public_get_readsandlog('income_huan', param_id);
    });



</script>
</body>
</html>




